package com.atguigu.lease.web.admin.service.impl;

import com.atguigu.lease.model.entity.UserInfo;
import com.atguigu.lease.web.admin.mapper.UserInfoMapper;
import com.atguigu.lease.web.admin.service.UserInfoService;
import com.atguigu.lease.web.admin.vo.user.UserInfoQueryVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * @author xiongkunYang
 * @description 针对表【user_info(用户信息表)】的数据库操作Service实现
 * @createDate 2025-04-19 22:27:34
 */
@Service
@RequiredArgsConstructor
public class UserInfoServiceImpl extends ServiceImpl<UserInfoMapper, UserInfo>
        implements UserInfoService {

    private final UserInfoMapper userInfoMapper;

    @Override
    public IPage<UserInfo> userInfoPageByQuery(long current, long size, UserInfoQueryVo queryVo) {
        Page<UserInfo> page = new Page<>(current, size);
        return this.userInfoMapper.selectPageByQuery(page, queryVo);
    }
}




